    package AMainFrame;  
    import org.eclipse.swt.layout.FillLayout;  
    import org.eclipse.swt.widgets.Composite;  

    public class RightCom extends Composite {  
        /** 
         * Create the composite 
         * @param parent 
         * @param style 
         */  
        public RightCom(Composite parent, int style) {  
            super(parent, style);  
            this.setLayout(new FillLayout());  
            //  
        }  
        @Override  
        protected void checkSubclass() {  
            // Disable the check that prevents subclassing of SWT components  
        }  
    }  